package com.erp.service.warehouse.impl;


import com.erp.domain.ErpWarehouse;
import com.erp.mapper.warehouse.WarehouseMapper;
import com.erp.service.warehouse.IWarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author cuicui
 * @Description
 * @Date 2025-9-2
 */
@Service
public class WarehouseServiceImpl implements IWarehouseService {
    @Autowired
        private WarehouseMapper warehouseMapper;
    @Override
    public List<ErpWarehouse> ListWarehouse(ErpWarehouse erpWarehouse) {
        return warehouseMapper.ListWarehouse(erpWarehouse);
    }

    @Override
    public int add(ErpWarehouse erpWarehouse) {
        return warehouseMapper.add(erpWarehouse);
    }

    @Override
    public ErpWarehouse getInfo(Long warehouseId) {
        return warehouseMapper.getInfo( warehouseId);
    }

    @Override
    public int updateWarehouse(ErpWarehouse erpWarehouse) {
        return warehouseMapper.updateWarehouse(erpWarehouse);
    }

    @Override
    public void insertBatch(List<ErpWarehouse> cachedDataList) {
        warehouseMapper.insertBatch(cachedDataList);
    }
}
